export function isObject(obj) {
  return obj !== null && typeof obj === "object";
}

export function def(data, key, value) {
  Object.defineProperty(data, key, {
    value,
    enumerable: false, //不可枚举
    configurable: true, //可写
  });
}
